
public class DestinationLauncher {

   /**
    * @param args
    */
   public static void main(String[] args) throws Exception {
      String dest1Args[] = {"9101", "9109", "false", "127.0.0.1"};
      DestThread dest1 = new DestThread(dest1Args);
      
      String dest2Args[] = {"9105", "9113", "false", "127.0.0.1"};
      DestThread dest2 = new DestThread(dest2Args);
      

      dest1.start();
      dest2.start();
      
   }
   
   private static class ServerThread extends Thread {
      private String args[];
      
      public ServerThread(String in_args[]) {
         args = in_args;
      }
      
      public void run() {
         try {
            UDPServer.main(args);
         } catch(Exception e) {
            e.printStackTrace();
         }
      }
   }
   
   private static class SourceThread extends Thread {
      private String args[];
      
      public SourceThread(String in_args[]) {
         args = in_args;
      }
      
      public void run() {
         try {
            UDPClient.main(args);
         } catch(Exception e) {
            e.printStackTrace();
         }
      }
   }
   
   private static class DestThread extends Thread {
      private String args[];
      
      public DestThread(String in_args[]) {
         args = in_args;
      }
      
      public void run() {
         try {
            UDPDestination.main(args);
         } catch(Exception e) {
            e.printStackTrace();
         }
      }
   }

}
